<template>
  <view class="search-bar" @click="navigateToSearch">
    <wd-icon name="search" size="36rpx" color="#999" />
    <text class="placeholder">搜索酒水商品</text>
  </view>
</template>

<script lang="ts" setup>
//
// 导航方法
const navigateToSearch = () => {
  uni.navigateTo({ url: '/pages/search/index' })
}
</script>

<style lang="scss" scoped>
//
.search-bar {
  display: flex;
  align-items: center;
  padding: 20rpx 30rpx;
  margin: 20rpx 15rpx;
  background: #fff;
  border-radius: 60rpx;
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);

  .placeholder {
    margin-left: 20rpx;
    font-size: 28rpx;
    color: #999;
  }
}
</style>
